// JavaScript Document

$(document).ready(function () {
	$( "input:submit,input:reset, button", "body" ).button();
});

function but_click(queryString) {
	//alert("CheckOut.aspx?"+queryString);
	$("#checkoutDiv").fadeOut().load("CheckOut.aspx?"+queryString).fadeIn();
};

function loadEffect() {
    //Hide and show the content before and after the effect is over
    $("#checkoutDiv").hide();

    setTimeout(function () {
        $("#checkoutDiv").show();
    }, 500);
    
    //Set the style for button, etc
    $("input:submit,input:reset, button", "body").button();

    ////Effect of the dialog

    //Using hide,show and callback
    //$(".ui-dialog").hide("drop", { direction: "left" }, 500, callbackDialog());

    //Using toggle
    $(".ui-dialog").toggle("fold", { size: "50px" }, 500);
    $(".ui-dialog").toggle("fold", { size: "50px" }, 500);
    
    
};

function callbackDialog() {
    setTimeout(function () {
        $(".ui-dialog").show("drop", { direction: "right" }, 500);
    }, 500);
};

function changeDialogTile(newTitle) {
    $("#dialogCheckout").dialog({
        title: newTitle
	});
};

function lastButtonClick() {
   
};